$("#gb").click(function () {
    let index=parent.layer.getFrameIndex(window.name);
    parent.layer.close(index);
})
$("#qx").click(function () {
    let index=parent.layer.getFrameIndex(window.name);
    parent.layer.close(index);
})
// console.log(localStorage.getItem("userId"));


$.ajax({
    type: 'get',
    url: '/backgroundmanagementpersonnellist/see',
    data:{userId:localStorage.getItem("userId")},
    success: function (res) {
        $("span[name='userAccount']").text(res.data[0].userAccount);
        $("span[name='zhnc']").text(res.data[0].userNickname);

        $("input[name='userAccount']").val(res.data[0].userAccount);
        $("input[name='userNickname']").val(res.data[0].userNickname);
        if(res.data[0].userSex == 1){
            $("input[name='userSex']").val("男");
        }else{
            $("input[name='userSex']").val("女");
        }

        $("input[name='userPhone']").val(res.data[0].userPhone);
        $("input[name='userIdCard']").val(res.data[0].userIdCard);
        $("input[name='userDateBirth']").val(res.data[0].userDateBirth);
        $("input[name='deptName']").val(res.data[0].department.deptName);
        $("input[name='userRegistrationTime']").val(res.data[0].userRegistrationTime);
        $("input[name='userRegisterIp']").val(res.data[0].userRegisterIp);
        $("input[name='userEmail']").val(res.data[0].userEmail);


        var obj = document.getElementById("tpxx");
        obj.src = 'http://43.143.176.39/'+res.data[0].userUrl;//能设置

    }
})